checkout: Merge union/add logic for copies during checkout
authorColin Walters <walters@verbum.org>
Tue, 18 Apr 2017 16:41:40 +0000 (12:41 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 25 Apr 2017 13:52:35 +0000 (13:52 +0000)
commit511b31cfb51e30543e8692e1ff1ec8ba8f37b5dd
tree29e52dd1a25e3af9a885af34c378f29c9a25761a
parentb7afe91e21143d7abb0adde440683a52712aa246
checkout: Merge union/add logic for copies during checkout

We really have an astonishing variety of similar functions which write files and
symlinks. I was working on a different PR and the duplication between the
union-mode and add-mode/none-mode checkout functions bothered me.

I realized that the "handle EEXIST" tri-state maps directly to the
`GLnxLinkTmpfileReplaceMode`, so deduping things makes even more sense.

Closes: #801
Approved by: jlebon
Makefile-tests.am
src/libostree/ostree-repo-checkout.c
tests/test-basic-root.sh [new file with mode: 0755]